class Solution:
    def getSneakyNumbers(self, nums: List[int]) -> List[int]:
        dic = Counter(nums)
        res = []
        for x in dic:
            if dic[x] == 2:
                res.append(x)
        return res